$(function(){





$("#submit").click(function(){
	
	if(!submitValidate()){
		return;
	}
	url_editUser = "oa-user/tbUserAction_editUser.action";
	
	req_editUser = {
		'tbUser.tbUserId':$("#userId").text(),
		'tbUser.name':$("#uName").attr("value"),
		'tbUser.password':$("#uPassword").attr("value"),
		'tbUser.mobilephone':$("#uPhone").attr("value"),
		'tbUser.telephone':$("#uTel").attr("value"),
		'tbUser.email':$("#uMail").attr("value"),
		'tbUser.fax':$("#uFax").attr("value"),
		
		'deptId':$("#dept").attr("value"),
		'roleId':$("#roleId").text()//这个角色不应该只限一个,要修改
	};
	
	$.post(url_editUser,req_editUser,function(data){
		alert(data.result);
		location.href="users.jsp";
	});
	
});

});


function validate(){
	
//	$("#uId").attr("value");
	//未实现
	
}
